from settings.secret import SecretConfig


class DefaultConfig(SecretConfig):
    SECRET_KEY = "dafasdgadfsadsfdsafadsdasfadsf"
    SQLALCHEMY_DATABASE_URI = ""
    SQLALCHEMY_ECHO = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    JSON_AS_ASCII = False
    REDIS_HOST = ""
    REDIS_PASSWORD = ""
    REDIS_PORT = ""


class DevConfig(DefaultConfig):
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@127.0.0.1:3306/news"
    REDIS_HOST = "127.0.0.1"
    REDIS_PASSWORD = "123456"
    REDIS_PORT = "6379"
